<template>
  <div>
    <h1>Home</h1>
    <div>
      <router-link to="/home/news">
        <button>按钮</button>
      </router-link>
      <router-link to="/home/play">娱乐</router-link>
      <router-link to="/home/music">音乐</router-link>
    </div>
    <router-view v-slot="{ Component }">
      <keep-alive>
        <component :is="Component"></component>
      </keep-alive>
    </router-view>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  name: "Home",
});
</script>

<script setup lang="ts"></script>

<style scoped></style>
